(Maryam) 19 : 49
فَلَمَّا اعْتَزَلَهُمْ وَمَا يَعْبُدُونَ مِنْ دُونِ اللَّهِ وَهَبْنَا لَهُ إِسْحَاقَ وَيَعْقُوبَ ۖ وَكُلًّا جَعَلْنَا نَبِيًّا

So when he had left them and things they worshipped besides Lord Allah, We bestowed upon him Ishaq and Ya’qoob, and We made each of them a Prophet.

See explanation 14: 139; 18: 16.